using System;
namespace ServiceStack.DataAnnotations
{
	[AttributeUsage]
	public class DecimalLengthAttribute : AttributeBase
	{
		public int Precision
		{
			get;
			set;
		}
		public int Scale
		{
			get;
			set;
		}
		public DecimalLengthAttribute(int precision, int scale)
		{
			this.Precision = precision;
			this.Scale = scale;
		}
		public DecimalLengthAttribute(int precision) : this(precision, 0)
		{
		}
		public DecimalLengthAttribute() : this(18, 0)
		{
		}
	}
}
